<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2018/11/10
  Time: 14:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="com.facepp.http.HttpRequests" %>
<%@ page import="com.facepp.http.PostParameters" %>
<%@ page import="java.io.File" %>
<%@ page import="org.json.JSONObject" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    HttpRequests hsr = new HttpRequests("QfO6kqRBF9AZswg9BW7iK1jph0QTFHWM","M8FYmMwXlpL1ZLySifU0n1z9nCPuJS0b");

    PostParameters pps = new PostParameters();
    String imgPath = request.getAttribute("imgPath").toString();
    pps.setImg(new File("G:face/out/artifacts/faceweb_war_exploded/image/image/1.jpg"));
    JSONObject result = hsr.detectionDetect(pps);
    System.out.println(result);
    %>
<html>
  <head>
    <title>人脸特征识别</title>
    <script type="text/javascript">
      function openBrows() {
          var object = document.getElementById("fileChoice");

          object.click();

      }

    </script>
  </head>
  <body>
    <h1>人脸特征识别</h1>
    <form action="item.html" method="post" enctype="multipart/form-data">
     <div class="box">
         <img src="../image/1.jpg">
     </div>
    </form>
  </body>
</html>
